package com.ketangpai.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ketangpai.admin.entity.StuWork;
import com.ketangpai.admin.entity.dto.StuWorkDTO;
import com.ketangpai.admin.entity.param.StuWorkParam;

import java.util.List;
import java.util.Map;

public interface StuWorkService extends IService<StuWork> {
    /**
     * 通过ID查询单条数据
     */
    StuWork queryById(Integer id);

    List<StuWork> queryByUid(Integer uid);

    List<StuWorkDTO> queryByUCid(Integer cid, Integer uid);

    boolean expediteBatch();
    /**
     * 分页查询
     */
    Map<String,Object> selectList(
            StuWorkParam param
    );

    /**
     * 新增数据
     */
    boolean insert(StuWork stuWork);

    boolean expedite(Integer id);

    /**
     * 修改数据
     */
    boolean update(StuWork stuWork);

    /**
     * 通过主键删除数据
     */
    boolean deleteById(Integer id);

    List<StuWorkDTO> getList(StuWorkParam param);
}
